package com.hexacta.hrs.services.exchange.impl;

import java.util.Collection;

import com.hexacta.hrs.domain.exchange.Referring;
import com.hexacta.hrs.repositories.exchange.ReferringRepository;
import com.hexacta.hrs.services.exchange.ReferringService;

public class ReferringServiceImpl implements ReferringService {
	private ReferringRepository referringRepository;

	public ReferringRepository getReferringRepository() {
		return referringRepository;
	}

	public void setReferringRepository(ReferringRepository referringRepository) {
		this.referringRepository = referringRepository;
	}

	@Override
	public void delete(Referring entity) {
		referringRepository.delete(entity);
	}

	@Override
	public Referring forId(Long id) {
		return referringRepository.forId(id);
	}

	@Override
	public Collection<Referring> matching(Referring criteria) {
		return referringRepository.matching(criteria);
	}

	@Override
	public void save(Referring entity) {
		referringRepository.save(entity);
	}

	@Override
	public Collection<Referring> all() {
		return referringRepository.all();
	}
	
}
